package com.openroom.ui.action;

import org.apache.log4j.Logger;
import org.apache.pivot.wtk.Action;
import org.apache.pivot.wtk.Component;

import com.openroom.model.ModelLocator;
import com.openroom.model.ModelLocator.ModeFlag.CropMode;

public class CropAction extends Action {
	private static final Logger LOGGER = Logger.getLogger(CropAction.class);
    public CropAction() {

    }

    @Override
    public void perform(Component source) {
        LOGGER.debug("CropAction.perform()");
        ModelLocator.getInstance().getCurrentMode().cropMode = CropMode.CROP_ALLOWED;
    }
}
